home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
etc
/
magic.z
/
magic
Wrap
Text File
|
1992-04-03
|
8KB
|
264 lines
#ident "$Revision: 1.28 $
#
# file cmd's magic file
#
# Basically, the fields of this file are as follows:
# byte offset, value type, optional operator (= by default), value
# to match (numeric or string), and string to be printed. Numeric
# values may be decimal, octal, or hex, or addr; addr is simply the
# address of the match in memory, useful primarily with printf formats.
# A matching value "x" matches anything for non-string value types.
# Also note that the last string may have 1 printf format spec.
#
# The '>' in occassional column 1's is magic: it forces file to
# continue scanning and matching additional lines. The first line
# afterwards not so marked terminates the search.
# The strings to be printed for successive lines marked with '>'
# are output on the same line, with a space character between
# each field - unless the first character of the output string
# is a backspace, in which case the space and the backspace are
# both suppressed.
#
# Note that by combining the "addr" value type with a matching value
# of "x" (match anything for non-string value types), and a printf
# format of "%s", one can print arbitrary strings. The string will
# be printed up to the first \0 or \n, whichever comes first.
# See the #! entries for an example.
#
0 short 000732 SGI imagelib image
>6 short x (%d x
>8 short x %d)
0 short 0155001 SGI imagelib image (byte swapped)
0 string %! PostScript file
0 short 070707 cpio archive
0 string 070707 ASCII cpio archive
0 long 0177555 obsolete ar archive
0 short 0177545 pdp11/pre System V ar archive
0 long 0100554 apl workspace
0 short 017436 packed data
0 short 017037 packed data (byte swapped)
0 short 017635 compressed data
0 string <ar> System V Release 1 ar archive
0 string !<arch> current ar archive
0 long 0407 68020 executable
0 long 0410 68020 pure executable
0 short 0407 pdp11/pre System V vax executable
>8 short >0 not stripped
>15 byte >0 - version %ld
0 short 0401 unix-rt ldp
0 short 0405 pdp11 overlay
0 short 0410 pdp11/pre System V vax pure executable
>8 short >0 not stripped
>15 byte >0 - version %ld
0 short 0411 pdp11 separate I&D
>8 short >0 not stripped
>15 byte >0 - version %ld
0 short 0432 Compiled Terminfo Entry
0 short 0433 Curses screen image
0 short 0434 Curses screen image
0 short 0437 pdp11 kernel overlay
0 short 0570 vax executable
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0575 vax pure executable
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0502 basic-16 executable
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0503 basic-16 executable (TV)
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0510 x86 executable
>12 long >0 not stripped
0 short 0511 x86 executable (TV)
>12 long >0 not stripped
0 short 0550 3b20 executable
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0551 3b20 executable (TV)
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0560 WE32000 executable
>12 long >0 not stripped
>18 short ^00010000 - N/A on 3b2/300 w/paging
>18 short &00020000 - 32100 required
>18 short &00040000 and mau hardware required
>20 short 0443 (target shared library)
>20 short 0410 (swapped)
>20 short 0413 (paged)
>22 short >0 - version %ld
0 short 0561 WE32000 executable (TV)
>12 long >0 not stripped
>18 short &00020000 - 32100 required
>18 short &00040000 and mau hardware required
>22 short >0 - version %ld
0 short =0512 iAPX 286 executable small model (COFF)
>12 long >0 not stripped
>22 short >0 - version %ld
0 short =0522 iAPX 286 executable large model (COFF)
>12 long >0 not stripped
>22 short >0 - version %ld
0 short 0520 mc68k executable
>12 long >0 not stripped
0 short 0521 mc68k executable (shared)
>12 long >0 not stripped
0 short 0522 mc68k executable (shared demand paged)
>12 long >0 not stripped
0 short 0x8765 disk quotas file
0 short 0x0506 IRIS Showcase file
>2 byte 0x49
>3 byte x - version %d
0 short 0x0226 IRIS Showcase template
>2 byte 0x63
>3 byte x - version %d
4 long 0xdeadbabe IRIX Parallel Arena
>8 long >0 - version %d
#
# MIPS binary information - Note that version number printing is an
# extreme hack.
#
0 short 0x0160 mipseb
>20 short 0407 executable
>20 short 0410 pure
>20 short 0413 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>18 short &0x0400 (R4000 fpdiv clean)
>18 short ^0x0400 (R4000 fpdiv unchecked)
>22 byte x - version %ld.
>23 byte x %ld
0 short 0x0162 mipsel
>20 short 0407 executable
>20 short 0410 pure
>20 short 0413 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>18 short &0x0400 (R4000 fpdiv clean)
>18 short ^0x0400 (R4000 fpdiv unchecked)
>23 byte x - version %ld.
>22 byte x %ld
0 short 0x6001 swapped mipseb
>20 short 03401 executable
>20 short 04001 pure
>20 short 05401 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>18 short &0x0004 (R4000 fpdiv clean)
>18 short ^0x0004 (R4000 fpdiv unchecked)
>22 byte x - version %ld.
>23 byte x %ld
0 short 0x6201 swapped mipsel
>20 short 03401 executable
>20 short 04001 pure
>20 short 05401 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>18 short &0x0004 (R4000 fpdiv clean)
>18 short ^0x0004 (R4000 fpdiv unchecked)
>22 byte x - version %ld.
>23 byte x %ld
0 short 0x180 mipseb ucode
0 short 0x182 mipsel ucode
0 long 0x7f454c46 ELF executable
#
# MIPS 2 additions below
#
0 short 0x0163 mipseb mips2
>20 short 0407 executable
>20 short 0410 pure
>20 short 0413 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>22 byte x - version %ld.
>23 byte x %ld
0 short 0x0166 mipsel mips2
>20 short 0407 executable
>20 short 0410 pure
>20 short 0413 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>22 byte x - version %ld.
>23 byte x %ld
0 short 0x6301 swapped mipseb mips2
>20 short 03401 executable
>20 short 04001 pure
>20 short 05401 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>23 byte x - version %ld.
>22 byte x %ld
0 short 0x6601 swapped mipsel mips2
>20 short 03401 executable
>20 short 04001 pure
>20 short 05401 demand paged
>8 long !0 not stripped
>8 long 0 stripped
>23 byte x - version %ld.
>22 byte x %ld
#
# IRIX core format version 1 (from /usr/include/core.out.h)
0 long 0xdeadadb0 IRIX core dump
>4 long 1 of
>16 addr x '%s'
#
# Archives - This handles archive subtypes
#
0 string !<arch>\n__________E MIPS archive
>20 string U with mipsucode members
>21 string L with mipsel members
>21 string B with mipseb members
>19 string L and a EL hash table
>19 string B and a EB hash table
>22 string X -- out of date
0 string !<arch> archive
# #! scripts; prints interpreter name as well; check for just 3 legal cases
# so we don't catch comments starting with !, etc.
0 string #! /
>3 addr x %s script
0 string #!\t/
>3 addr x %s script
0 string #!/
>2 addr x %s script
#
0 string GIF GIF image
>3 string 87a (version 87a)
>3 string 89a (version 89a)
# can use short and %d on little endian machines
>7 char x (0x%x
>6 char x %02x
>9 char x x 0x%x
>8 char x %02x)
0 long 0x59a66a95 raster image
#
8 long 0x41494646 AIFF sound data file
0 long 0x4e54524b MultiTrack sound data file
>4 long x - version %ld
# These are from the PBMPLUS package's auxiliary magic numbers file
# Most of these entries use the "string" format so that they will work on
# both big-endian and little-endian machines.
0 string begin uuencoded file
0 string xbtoa btoa'd file
0 string P1 PBM file
0 string P2 PGM file
0 string P3 PPM file
0 string P4 PBM "rawbits" file
0 string P5 PGM "rawbits" file
0 string P6 PPM "rawbits" file
0 string yz MGR bitmap
0 long 0xf10040bb CMU window manager bitmap
0 short 0x4d4d TIFF file, big-endian
0 short 0x4949 TIFF file, little-endian
8 string ILBM IFF ILBM file
0 string This is a BitMap file Lisp Machine bit-array-file
0 string !! Bennet Yee's "face" format
#
0 string WNGZWZSC Wingz compiled script
0 string WNGZWZSS Wingz spreadsheet
0 string WNGZWZHP Wingz help file
#
# Trusted IRIX info
0 string SGIAUDIT SGI Audit file
>8 char x , version %d
>9 char x .%d